package com.jeecg.p3.commonluckymoney.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import org.jeecgframework.p3.core.utils.persistence.Entity;

import com.jeecg.p3.commonluckymoney.annotation.Excel;

/**
 * 描述：</b>WxActCommonluckymoneyRecord:中奖记录表<br>
 * @author pituo
 * @since：2015年12月08日 16时43分34秒 星期二 
 * @version:1.0
 */
public class WxActCommonluckymoneyRecord implements Entity<String> {
	private static final long serialVersionUID = 1L;
		/**	 *记录id	 */	private String id;	/**	 *	 */	private String actId;	/**	 *奖项	 */
	private String awardsId;
	/**
	 *奖品名称
	 */
	@Excel(exportConvertSign = 0, exportFieldWidth = 30, exportName = "奖品名称", importConvertSign = 0)
	private String awardsName;	/**	 *openid	 */
	@Excel(exportConvertSign = 0, exportFieldWidth = 30, exportName = "openid", importConvertSign = 0)	private String openid;	/**	 *奖品序号	 */	private Integer awardsSeq;	/**	 *领奖状态0:未领取；1：已领取	 */
	@Excel(exportConvertSign = 1, exportFieldWidth = 30, exportName = "领取状态", importConvertSign = 0)	private String recieveStatus;	/**	 *手机号	 */
	@Excel(exportConvertSign = 0, exportFieldWidth = 30, exportName = "手机号", importConvertSign = 0)	private String phone;
	/**	 *对应微信平台原始id	 */	private String jwid;
	/**
	 *中奖时间
	 */
	@Excel(exportConvertSign = 1, exportFieldWidth = 30, exportName = "中奖时间", importConvertSign = 0)
	private Date recieveTime;
	/**	 *姓名	 */
	@Excel(exportConvertSign = 0, exportFieldWidth = 30, exportName = "姓名", importConvertSign = 0)	private String realname;
	/**	 *地址	 */
	@Excel(exportConvertSign = 0, exportFieldWidth = 30, exportName = "地址", importConvertSign = 0)	private String address;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getActId() {
		return actId;
	}
	public void setActId(String actId) {
		this.actId = actId;
	}
	public String getAwardsId() {
		return awardsId;
	}
	public void setAwardsId(String awardsId) {
		this.awardsId = awardsId;
	}
	public String getAwardsName() {
		return awardsName;
	}
	public void setAwardsName(String awardsName) {
		this.awardsName = awardsName;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public Integer getAwardsSeq() {
		return awardsSeq;
	}
	public void setAwardsSeq(Integer awardsSeq) {
		this.awardsSeq = awardsSeq;
	}
	public String getRecieveStatus() {
		return recieveStatus;
	}
	public String getRecieveStatusConvert() {
		if("0".equals(this.recieveStatus)){
			return "未领取";
		}else{
			return "已领取";
		}
	}
	public void setRecieveStatus(String recieveStatus) {
		this.recieveStatus = recieveStatus;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getJwid() {
		return jwid;
	}
	public void setJwid(String jwid) {
		this.jwid = jwid;
	}
	public Date getRecieveTime() {
		return recieveTime;
	}
	public String getRecieveTimeConvert(){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(this.recieveTime);
	}
	public void setRecieveTime(Date recieveTime) {
		this.recieveTime = recieveTime;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("WxActCommonluckymoneyRecord [id=");
		builder.append(id);
		builder.append(", actId=");
		builder.append(actId);
		builder.append(", awardsId=");
		builder.append(awardsId);
		builder.append(", awardsName=");
		builder.append(awardsName);
		builder.append(", openid=");
		builder.append(openid);
		builder.append(", awardsSeq=");
		builder.append(awardsSeq);
		builder.append(", recieveStatus=");
		builder.append(recieveStatus);
		builder.append(", phone=");
		builder.append(phone);
		builder.append(", jwid=");
		builder.append(jwid);
		builder.append(", recieveTime=");
		builder.append(recieveTime);
		builder.append("]");
		return builder.toString();
	}}

